package com.foreknow.demo09;

import java.util.Scanner;

/**
 * 用户类
 */
public class Person {
  String name = "匿名";//名字
  int score = 0;//积分

  public int showFirst() {
    Scanner input = new Scanner(System.in);
    System.out.println("请出拳: 1.剪刀   2.石头  3.布(请输入相应的数字):");
    int show = input.nextInt();
    switch (show){
      case 1:
        System.out.println("你出拳:剪刀");
        break;
      case 2:
        System.out.println("你出拳:石头");
        break;
      case 3:
        System.out.println("你出拳:布");
        break;
    }
    return show;
  }
}
